/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package renders;

import entities.Feriados;
import entities.Temporada;
import java.awt.Color;
import java.awt.Component;
import java.util.*;
import javax.swing.BorderFactory;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
import views.VistaDisponibilidad;

/**
 *
 * @author Smuggler
 */
public class TipoRender extends DefaultTableCellRenderer {

    

    public Component getTableCellRendererComponent(JTable table,
            Object value,
            boolean isSelected,
            boolean hasFocus,
            int row,
            int column) {
        super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        
        
        if (value != null) {
            switch (column) {
                case 1:
                    this.setForeground(new Color((int)value));
                    this.setBackground(new Color((int)value));
                    break;
                default:
             
                    break;
            }
        }

        return this;
    }
}
